package cn.duli.xianer.service.impl;

import cn.duli.xianer.dao.TransferMapper;
import cn.duli.xianer.pojo.Transfer;
import cn.duli.xianer.service.TransferService;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TransferServiceImpl implements TransferService {

    @Resource
    private TransferMapper transferMapper;

    @Override
    public int save(Transfer transfer) {
        transferMapper.save(transfer);
        return transfer.gettId();
    }

    @Override
    public Page<Transfer> findAll() {
        return transferMapper.findAll();
    }
}
